# _*_coding:utf-8_*_
# Author   :luoyuan 
# Date     :2019/1/5 16:06  

class Chinese:
    country='China'
    def __init__(self,name):
        self.name=name

    def play_ball(self,ball):
        print('%s正在打%s' %(self.name,ball))
p1=Chinese('luoy')
print(p1.__dict__)
#查看
print(p1.name)
p1.play_ball('篮球')

#增加
p1.age=18
print(p1.__dict__)
print(p1.age)

def test(self):
    print('实例函数属性')
p1.test=test
print(p1.__dict__)

#删除
del p1.age
print(p1.__dict__)

